<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>资讯分类管理-资讯管理-后台管理首页</title>
       
    </head>
    <body>
        <div class="wrap">
         
            <div class="mainBody">
               
                <div id="Right">
                    <div class="Item hr">
                        <div class="current">资讯分类管理</div>
                    </div>
                    <form action="" method="post" id="quickForm">
                        <b>添加分类：</b>
                        <input type="hidden" name="act" value="add" /> &nbsp;
                        <select name="data[cat_father]">
                            <option value="0">顶级分类</option>
                            <volist name="list" id="vo">
                                <option value="{$vo.cat_id}">{$vo.cat_name}</option>
                            </volist>
                        </select>  &nbsp;
                        <input placeholder="你要添加的分类名称" id="newName" class="input" type="text" name="data[name]" value="" /> &nbsp;
                        <button class="btn quickSubmit">确定添加</button>
                    </form>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab">
                        <thead>
                            <tr align="center">
                                <td width="10%">原分类Cat_id</td>
                                <td width="20%">原分类结构 <b title="单击分类隐藏/显示该分类下在子类">[i]</b></td>
                                <td width="20%" align="left">操作属性</td>
                                <td width="20%">新分类</td>
                                <td width="20%">修改后的名称</td>
                                <td width="10%">操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <volist name="list" id="tree">
                                <tr cat_father="{$tree.cat_father}" cat_id="{$tree.cat_id}">
                                    <td width="10%" align="center">{$tree.cat_id}<input type="hidden" name="cat_id" value="{$tree.cat_id}"/></td>
                                    <td width="20%" class="tree" style="cursor: pointer;">{$tree.cat_name}</td>
                                    <td width="20%">
                                        <select name="act" class="act">
                                            <option selected="selected" value="edit">修改该分类</option>
                                            <option value="del">删除该分类</option>
                                            <option value="add">在该分类中添加子类</option>
                                        </select>
                                    </td>
                                    <td width="20%">
                                        <select name="cat_father">
                                            <option value="0">顶级分类</option>
                                            <volist name="list" id="vo1">
                                                <if condition="$vo1['cat_id'] eq $tree['cat_id']">
                                                    <option value="{$vo1.cat_id}" selected="selected" readonly>{$vo1.cat_name}</option>
                                                    <else/>
                                                    <option value="{$vo1.cat_id}">{$vo1.cat_name}</option>
                                                </if>
                                            </volist>
                                        </select>
                                    </td>
                                    <td width="20%"><input type="text" value="" name="name" class="input" placeholder="你要修改分类的新名称"/></td>
                                    <td align="center" width="10%"><button class="btn opCat">确定</button></td>
                                </tr>
                            </volist>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
       
        <div class="clear"></div>
       
    </body>
</html>
